#ifndef AKTAZO_H
#define AKTAZO_H

#include <fstream>
#include <vector>

///aktazo.h
///class definition for handle states of program
///based on UML State Machine diagram

#include "document.h"

class Aktazo
{
	private:
		std::ifstream f_in;
		std::ofstream f_out;
		std::string filename;
		std::vector<Document> *v_ptr;
		unsigned int v_old_size;
		unsigned int v_new_size;
		
		void load_data();

		void run();

		void save_data();//const std::vector<int> &p_v);

	public:
		enum Exceptions
		{
			FILE_READ_ERROR,
			FILE_WRITE_ERROR
		};

		Aktazo();

		~Aktazo();
		
		//friend void Document::record(const int &p_e);

};

#endif
